package dlg.code.builder;

/**
 * 具体的建造者
 */
public class ConcreteBuilder extends AbstractBuilder {

    private Product product;

    public ConcreteBuilder() {
        product = new Product();
    }

    @Override
    void setName(String name) {
        product.setName(name);
    }

    @Override
    void setWidth(String width) {
        product.setWidth(width);
    }

    @Override
    void setHeight(String height) {
        product.setHeight(height);
    }

    @Override
    Product getProduct() {
        return product;
    }
}
